home *** CD-ROM | disk | FTP | other *** search
/ Fritz: All Fritz / All Fritz.zip / All Fritz / FILES / UTILFILE / FILESAFE.LZH / INSTALL.BAT < prev    next >
DOS Batch File  |  1990-02-12  |  4KB  |  96 lines

  1. Echo off
  2. CLS
  3. if "%1" == "" goto Noparms
  4. if "%2" == "" goto NoDir
  5. GOTO Proceed
  6. :NoDir
  7. Echo  
  8. Echo                           W A R N I N G
  9. Echo                  You did not specify a directory
  10. Echo  
  11. Echo If you proceed, File-Safe will be installed in the root directory
  12. Echo of drive %1.  If you made a mistake and want to start over, then
  13. Echo press Ctl-Brk now; otherwise
  14. Echo  
  15. Pause
  16. Cls
  17. :Proceed
  18. Echo      ══════════════════════════════════════════════════════════════════════
  19. Echo  
  20. Echo                              F I L E - S A F E
  21. Echo                       Hard Disk Installation Procedure
  22. Echo  
  23. Echo             You have asked that File-Safe be installed on a drive and
  24. Echo             directory specified by you. They are:
  25. Echo  
  26. Echo                            DRIVE           DIRECTORY
  27. Echo  
  28. Echo                             %1              %2
  29. Echo  
  30. Echo             If this is not correct, press Ctl-Brk now. Then re-enter
  31. Echo             the procedure with the correct drive letter and directory
  32. Echo             according to the following format:
  33. Echo  
  34. Echo                               INSTALL x: name
  35. Echo  
  36. Echo             where "x" is the drive letter and "name" is the name of
  37. Echo             the directory you wish to use. The current (default)
  38. Echo             drive should be A:.
  39. Echo  
  40. Echo      ══════════════════════════════════════════════════════════════════════
  41. pause
  42. if "%2" == "" goto BypassMD
  43. MD %1\%2
  44. :BypassMD
  45. %1
  46. CD \%2
  47. Echo Echo off > inst0.bat
  48. Echo Cls >> inst0.bat
  49. Echo HDINST2 %1 %2 >> inst0.bat
  50. GOTO Cont1
  51. :Noparms
  52. Echo      ╔════════════════════════════════════════════════════════════════════╗
  53. Echo      ║                                                                    ║
  54. Echo      ║                         F I L E - S A F E                          ║
  55. Echo      ║                 Hard Disk Installation Procedure                   ║
  56. Echo      ║                                                                    ║
  57. Echo      ║      This procedure will install File-Safe on your hard disk       ║
  58. Echo      ║      and set up the control files to simplify its operation.       ║
  59. Echo      ║                                                                    ║
  60. Echo      ║      It will create a sub-directory called FILESAFE where the      ║
  61. Echo      ║      programs and data files will be stored. It assumes that       ║
  62. Echo      ║      your hard disk is drive C:. If this is not correct, or        ║
  63. Echo      ║      if you want to use a different directory name, press          ║
  64. Echo      ║      Ctl-Brk now. Then re-enter the procedure with the correct     ║
  65. Echo      ║      drive letter and directory name according to the following    ║
  66. Echo      ║      format:                                                       ║
  67. Echo      ║                           INSTALL x: name                          ║
  68. Echo      ║                                                                    ║
  69. Echo      ║      where "x" is the drive letter and "name" is the name of       ║
  70. Echo      ║      the directory you wish to use. The current (default)          ║
  71. Echo      ║      drive should be A:.                                           ║
  72. Echo      ║                                                                    ║
  73. Echo      ╚════════════════════════════════════════════════════════════════════╝
  74. Echo  
  75. pause
  76. MD C:\FILESAFE
  77. C:
  78. CD \FILESAFE
  79. Echo Echo off > inst0.bat
  80. Echo Cls >> inst0.bat
  81. Echo HDINST2 C: FILESAFE  >> inst0.bat
  82. :Cont1
  83. CLS
  84. Echo  
  85. Echo        Extracting files/programs - one moment please .....
  86. Echo  
  87. :    If a master already exists, rename it
  88. IF EXIST FILESAFE.MRE Ren FILESAFE.MRE FILESAFE.BAK
  89. A:FILESAFE
  90. :    Extract all files to the installation directory
  91. IF NOT EXIST FILESAFE.BAK Goto SkipRename
  92. Del FILESAFE.MRE
  93. Ren FILESAFE.BAK *.MRE
  94. :SkipRename
  95. INST0
  96.